package com.dhcc.bpm.modules.cost.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springblade.core.mp.base.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;


/**
 * @ClassName RechargeInfo.class
 * @Description  充值记录表实体类
 * @Author xiaFaYu
 * @Date 2019-12-16 14:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
@Data
@TableName("opc_recharge_info")
@ApiModel(value = "RechargeInfo对象", description = "充值记录表")
public class RechargeInfo extends BaseEntity {

	private static final long serialVersionUID = 1L;
	/**
	* 充值卡号
	*/
		@ApiModelProperty(value = "充值卡号")
		private String rechargeCard;
	/**
	* 机构ID
	*/
		@ApiModelProperty(value = "机构ID")
		@JsonSerialize(
				using = ToStringSerializer.class,
				nullsUsing = NullSerializer.class
		)
		private Long orgaId;
	/**
	* 机构名称
	*/
		@ApiModelProperty(value = "机构名称")
		private String orgaName;
	/**
	* 充值状态
	*/
		@ApiModelProperty(value = "充值状态")
		private String flag;
	/**
	* 充值金额
	*/
		@ApiModelProperty(value = "充值金额")
		@JsonSerialize(
				using = ToStringSerializer.class,
				nullsUsing = NullSerializer.class
		)
		private BigDecimal credit;
	/**
	* 充值时间
	*/
		@ApiModelProperty(value = "充值时间")
		private Date rechargeDate;
}
